package com.haiwen.boot.mapper;

import com.haiwen.boot.pojo.comment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface commentMapper {
    int deleteByPrimaryKey(Integer commentId);

    int insert(comment record);

    int insertSelective(comment record);

    List<comment> selectByBlogID(Integer blogId);

    int updateByPrimaryKeySelective(comment record);

    int updateByPrimaryKeyWithBLOBs(comment record);

    int updateByPrimaryKey(comment record);
   String QueryUniqueComments(@Param("blogId")Integer blogId,@Param("commentId")Integer commentId);
}
